import { Global, HttpModule, Module } from '@nestjs/common'
import { RoleService } from '../logical/role/role.service'
import { HttpConfigService } from '../config/http.service'

@Global()
@Module({
    imports: [
        HttpModule.registerAsync({
            useClass: HttpConfigService
        })
    ],
    providers: [RoleService],
    exports: [HttpModule, RoleService]
})
export class SharedModule {}
